package com.niodata.dp.task.service;

import com.niodata.dp.task.entity.TaskConf;
import java.util.List;

/**
 * Created by ndp on 17-8-17.
 */
public interface TaskConfManager {

  public void createTaskConf(TaskConf taskConf);

  public void deleteTaskConfById(String id);

  public void updateTaskConf(TaskConf taskConf);

  public TaskConf getTaskConfById(String id);

  public TaskConf getTaskConfByName(String name);

  public void deleteTaskConfByName(String name);

  public List<TaskConf> getUserTaskConf(long userId, String keyWord,
      int offset, int count);

  public List<TaskConf> getGroupTaskConf(long userId, long groupId, String keyWord,
      int offset, int count);

  public List<TaskConf> getUserAuthorizedTaskConf(long userId, String keyWord,
      int offset, int count);
}
